#!/usr/bin/env python3

def gotoxy(x, y):
    print("\033[%d;%dH" % (x, y))

gotoxy(10, 10)

print("\033[?25l")
print("\033[31;1;40mhello\033[0m world")
print("\033[31mhello\033[32mworld\033[0m www.baidu.com")

for i in range(8):
    print("\033[%dmhello  \033[%d;1mhello  \033[%dmhello\033[0m" % (
                30 + i, 30 + i, 40 + i))
print("\033[s")

print("\033[4;60HHELLO WORLD", end='')

print("\033[17;10HHELLO WORLD", end='')

input()
print("\033[2J")
print("\033[?25h")

print("\033[1BBBBBBBB", end='')
print("\033[3AAAAAAAA", end='')
print("\033[20DDD", end='')

print("\033[uHELLO")

input()


